﻿#ifndef SVTEMPLATEVIEW_H
#define SVTEMPLATEVIEW_H

#include <ElaIconButton.h>
#include <QListView.h>

#include <QLayout>
#include <QWidget>

class SVTemplateView : public QWidget
{
    Q_OBJECT
public:
    SVTemplateView(QWidget *parent = nullptr);

    void setTemplateListModel(QAbstractItemModel *model);

signals:
    void addTemplateRequested();
    void removeTemplateRequested(const QList<int> &indexs);

private slots:
    void onRemoveTemplateClicked();

private:
    QListView *mTemplatePictureList;
    ElaIconButton *mAddTemplateButton;
    ElaIconButton *mRemoveTemplateButton;
};

#endif
